package com.jinan.common;


public class TreeNode<T> {
    // 节点值
    public T val;
    // 左子树
    public TreeNode<T> left;
    // 右子树
    public TreeNode<T> right;
    // 父节点
    public TreeNode<T> parent;
    // 节点高度
    public int hight;
    // 节点深度
    public int deep;
    // 构造函数
    public TreeNode() {
    }
    public TreeNode(T val) {
        this.val = val;
    }
    public TreeNode(T val, TreeNode<T> left, TreeNode<T> right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}
